import i18n from '@/lang'
// 升级异常统计中表格表头
export const fotaExceptionColumns = [
  {
    title: 'VIN',
    dataIndex: 'vin',
    scopedSlots: { customRender: 'vin' },
    width: 200
  },
  {
    title: i18n.t('modelCode'),
    dataIndex: 'modelCode',
    scopedSlots: { customRender: 'modelCode' },
    width: 120,
    special: true
  },
  {
    title: i18n.t('modelName'),
    dataIndex: 'modelName',
    scopedSlots: { customRender: 'modelName' },
    width: 120,
    special: true
  },
  {
    title: i18n.t('stereotype'),
    dataIndex: 'stereotype',
    scopedSlots: { customRender: 'stereotype' },
    width: 140,
    special: true
  },
  {
    title: i18n.t('campaignName'),
    dataIndex: 'taskName',
    scopedSlots: { customRender: 'campaignName' },
    width: 140
  },
  {
    title: i18n.t('policyName'),
    dataIndex: 'strategyName',
    scopedSlots: { customRender: 'strategyName' },
    width: 140
  },
  {
    title: i18n.t('mbclbb'),
    dataIndex: 'vehicleVersion',
    scopedSlots: { customRender: 'mbclbb' },
    width: 160
  },
  {
    title: i18n.t('reportingTime'),
    dataIndex: 'createTime',
    scopedSlots: { customRender: 'reportingTime' },
    width: 160,
    special: true,
    sorter: true
  },
  {
    title: i18n.t('operation'),
    scopedSlots: { customRender: 'operation' },
    width: 180,
    special: true,
    fixed: 'right'
  }
]

// 服务异常统计中表格表头
export const serviceExceptionColumns = [
  {
    title: 'VIN',
    dataIndex: 'vin',
    scopedSlots: { customRender: 'vin' },
    width: 160
  },
  {
    title: i18n.t('modelCode'),
    dataIndex: 'modelCode',
    scopedSlots: { customRender: 'modelCode' },
    width: 160,
    special: true
  },
  {
    title: i18n.t('modelName'),
    dataIndex: 'modelName',
    scopedSlots: { customRender: 'modelName' },
    width: 160,
    special: true
  },
  {
    title: i18n.t('stereotype'),
    dataIndex: 'trimLevel',
    scopedSlots: { customRender: 'stereotype' },
    width: 120,
    special: true
  },
  // {
  //   title: i18n.t('orderNum'),
  //   dataIndex: 'orderNum',
  //   scopedSlots: { customRender: 'orderNum' },
  //   width: 140
  // },
  {
    title: '激活流水号',
    dataIndex: 'operateSn',
    scopedSlots: { customRender: 'operateSn' },
    width: 140
  },
  {
    title: i18n.t('serviceCode'),
    dataIndex: 'serviceCode',
    scopedSlots: { customRender: 'serviceCode' },
    width: 140
  },
  {
    title: i18n.t('serviceName'),
    dataIndex: 'serviceName',
    scopedSlots: { customRender: 'serviceName' },
    width: 140
  },
  {
    title: i18n.t('serviceExpireDate'),
    dataIndex: 'expiration',
    scopedSlots: { customRender: 'expiration' },
    width: 140,
    sorter: true
  },
  {
    title: i18n.t('operateType'),
    dataIndex: 'operateType',
    scopedSlots: { customRender: 'operateType' },
    width: 120
  },
  {
    title: i18n.t('reportingTime'),
    dataIndex: 'operateTime',
    scopedSlots: { customRender: 'reportingTime' },
    width: 180,
    sorter: true,
    special: true
  },
  {
    title: i18n.t('operation'),
    scopedSlots: { customRender: 'operation' },
    width: 150,
    special: true,
    fixed: 'right'
  }
]
